﻿<%@ Page Title="Registrieren" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="ASV.Account.Register" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"></asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>Registrieren</h2>
    <asp:Label id="registForm" runat="server" Text="">
        <form id="Form1" runat="server" class="form-horizontal">
            <fieldset>
                <legend>Kontoinformationen</legend>
                 <div class="control-group">
                     <label class="control-label" for="vorname">Vorname</label>
                     <div class="controls">
                     <asp:TextBox id="Vorname" runat="server" name="vorname" type="text" placeholder="Vorname" class="input-xlarge" required=""></asp:TextBox>
                        <asp:RequiredFieldValidator ID="vornameRequired" runat="server" ControlToValidate="vorname"
                        CssClass="failureNotification" ErrorMessage="Der Vorname ist erforderlich." ToolTip="Der Vorname ist erforderlich."
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                      </div>
                </div>
                <div class="control-group">
                     <label class="control-label" for="nachname">Nachname</label>
                     <div class="controls">
                     <asp:TextBox id="Nachname" runat="server" name="nachname" type="text" placeholder="Nachname" class="input-xlarge" required=""></asp:TextBox>
                        <asp:RequiredFieldValidator ID="nachnameRequired" runat="server" ControlToValidate="Nachname"
                        CssClass="failureNotification" ErrorMessage="Der Nachname ist erforderlich." ToolTip="Der Nachname ist erforderlich."
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                      </div>
                </div>
                <div class="control-group">
                     <label class="control-label" for="email">E-Mail</label>
                     <div class="controls">
                     <asp:TextBox id="Email" runat="server" name="email" type="text" placeholder="E-Mail" class="input-xlarge" required=""></asp:TextBox>
                        <asp:RequiredFieldValidator ID="emailRequired" runat="server" ControlToValidate="email"
                        CssClass="failureNotification" ErrorMessage="Der E-Mail ist erforderlich." ToolTip="Der E-Mail ist erforderlich."
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                      </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="password">Passwort</label>
                    <div class="controls">
                        <asp:TextBox id="Password" runat="server" name="password" type="password" placeholder="Passwort" class="input-xlarge" required=""></asp:TextBox>
                        <asp:RequiredFieldValidator ID="passwordRequired" runat="server" ControlToValidate="password"
                        CssClass="failureNotification" ErrorMessage="Ein Kennwort ist erforderlich." ToolTip="Ein Kennwort ist erforderlich."
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="passwordRepeat">Passwort wiederholen</label>
                    <div class="controls">
                        <asp:TextBox id="PasswordRepeat" runat="server" name="passwordRepeat" type="password" placeholder="Passwort wiederholen" class="input-xlarge" required=""></asp:TextBox>
                        <asp:RequiredFieldValidator ID="passwordRepeatRequired" runat="server" ControlToValidate="passwordRepeat"
                        CssClass="failureNotification" ErrorMessage="Ein Kennwort ist erforderlich." ToolTip="Ein Kennwort ist erforderlich."
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                </div>

                <div class="control-group">
                  <label class="control-label" for="LoginButton"></label>
                  <div class="controls">
                    <asp:Button runat="server" id="registrierenButton" name="registrierenButton" 
                          class="btn btn-primary" Text="regeistrieren" 
                          ValidationGroup="LoginUserValidationGroup" onclick="registrierenButton_Click" ></asp:Button>
                  </div>
                </div>
            </fieldset>
        </form>
        <asp:Label ID="errors" runat="server" Text=""></asp:Label>
    </asp:Label>
    <asp:Label ID="erfolgsmeldung" runat="server" Text="" Visible="false">
        Vielen Dank für die Registrierung <asp:Label ID="regist_nachname" runat="server" Text=""></asp:Label>, <asp:Label ID="regist_vorname" runat="server" Text=""></asp:Label> <br />
        Ihr Kundennummer lautet: <asp:Label ID="regist_kundennummer" runat="server" Text=""></asp:Label><br />
        Ab jetzt können Sie sich mit Ihrer Kundennummer und ihrem Passwort anmelden.

        <h2>Hinweis</h2>
        Bitte notieren Sie ihre Kundennummer!
    </asp:Label>
</asp:Content>
